"use strict";
cc._RF.push(module, '60401AhtuhKDqHT+ctVHeUL', '_UserAttkResultHandler');
// CustomResultHandler/_UserAttkResultHandler.js

"use strict";

// @import
var mod_Global = require("../_Global");

var CHeroAction = require("../CHeroAction"); // @export


module.exports = {
  /** @override */
  handle: function handle(oUserAttkResult) {
    if (!oUserAttkResult) {
      return;
    }

    var nAttkUserId = oUserAttkResult.attkUserId;

    if (!nAttkUserId) {
      console.error("用户 Id 无效");
      return;
    }

    if (nAttkUserId == mod_Global.myUserId) {
      return;
    } // 获取英雄节点


    var oHeroNode = mod_Global.heroMap[nAttkUserId.toString()];

    if (null == oHeroNode) {
      console.error("\u82F1\u96C4\u8282\u70B9\u4E3A\u7A7A, attkUserId = " + nAttkUserId);
      return;
    }

    console.log("\u82F1\u96C4\u653B\u51FB, attkUserId = " + nAttkUserId);
    oHeroNode.getComponent(CHeroAction).attk();
  }
};

cc._RF.pop();